package com.inspur.dgov.bsp.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 区划关系
 *
 * @author chiyupei
 * @version 1.0
 * @since 1.0
 */
@Data
@TableName("pub_region_relation")
@ApiModel(value="PubRegionRelation对象", description="区划关系")
public class PubRegionRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "祖先区划ID")
    @TableId("ANCESTOR_ID")
    private Long ancestorId;

    @ApiModelProperty(value = "后代区划ID")
    @TableField("DESCENDANT_ID")
    private Long descendantId;

    @ApiModelProperty(value = "区划节点间隔")
    @TableField("DISTANCE")
    private Integer distance;


}
